<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加新闻</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	
	<link rel="stylesheet" type="text/css" href="css/mangerNews.css"/>
	<link rel="stylesheet" type="text/css" href="css/addnews.css"/>
	<script src="js/update.js" language="javascript" type="text/javascript"></script>
    <script src="js/addnews.js" language="javascript" type="text/javascript"></script>
  </head>
  
  <body>
 <div class="Top_1">
    <div class="Topz_1">
     <img src="image/logn.jpg"/>
    </div>
    <div class="Topz_2">
     <img src="image/logo5.jpg"/>
    </div>
 </div>
 <div class="DaoHang">
	   <ul>
		   <li name="daoh"style="letter-spacing:15px;"><a href="main.jsp">首页</a></li>
		   <li name="daoh"><a   href="">关于蓝旭</a>
		   <li style="background:url(image/dh_02.png);"name="daohx"><a   href="mafx?flag=mangerNews&pagenow=1&pagesize=17">新闻管理</a></li>
		   <li name="daoh"><a   href="">用户信息</a></li>
		   <li name="daoh"><a   href="mfx?flag=selectBluemsunM">蓝旭出品</a></li>
		   <li name="daoh"><a   href="">关于我们</a></li>
	   </ul>
 </div>
 <div class="center_1">
    <table id="addNewsTable">
        <form action="mafx?flag=addNews" method="post">
             <tr>
                <td>标题：<input type="text" name="title"/></td>
                <td>类型：<input type="text" name="type"/></td>
                <td>发布人：<input type="text" name="maker"/></td>
                 <td>TID:<input  type="text" name="tid"/></td>
                <td>发布日期:<input id="meeting" type="date" name="date"/></td>
                 
             </tr>
             <tr>
                <td colspan="5">
                <textarea name="content" cols="125" rows="36">请在此处写入新闻内容...</textarea>
                </td>
             </tr>
             <tr>
                <td>配图一：
	                <select name="img1">
	                    <option>--请选择--</option>
	                    <c:forEach var="image" items="${list}">
	                        <option value="${image.address}">${image.address}</option>
	                    </c:forEach>
	                </select>
                </td>
                <td>配图二：
	                <select name="img2">
	                    <option>--请选择--</option>
	                    <c:forEach var="image" items="${list}">
	                        <option value="${image.address}">${image.address}</option>
	                    </c:forEach>
	                </select>
                </td>
                <td>配图三：
	                <select name="img3">
	                    <option>--请选择--</option>
	                    <c:forEach var="image" items="${list}">
	                        <option value="${image.address}">${image.address}</option>
	                    </c:forEach>
	                </select>
                </td>
                <td colspan="2">配图四：
	                <select name="img4">
	                    <option>--请选择--</option>
	                    <c:forEach var="image" items="${list}">
	                        <option value="${image.address}">${image.address}</option>
	                    </c:forEach>
	                </select>
                </td>
             </tr>
             <tr style="text-align:center;">
                 <td colspan="2">
                    <input type="submit" value="添    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;加">                               
                 </td>
                 <td colspan="3"><input type="reset" value="全部清空"></td>
             </tr>
        </form>
    </table>
 </div>
 <div style="border:2px solid #A16427;"class="bottomDiv"> 
    <img class="ptc" id="0"name="img" src=""/>
 </div>
 <div class="bottomDiv">
    <img class="ptc" id="1"name="img" src=""/>
 </div>
 <div class="bottomDiv"> 
    <img class="ptc" id="2"name="img" src=""/>
 </div>
 <div class="bottomDiv">
    <img class="ptc" id="3"name="img"src=""/>
 </div>
</body>
</html>
